import React from 'react';
import {Router, Route, IndexRoute, browserHistory} from 'react-router';

import App from '../App';
import Button from '../Component/ButtonDemo';
import Dropdown from '../Component/Dropdowns';
import MenuItems from '../Component/MenuItems';
import Modals from '../Component/Modals';

const RouteConfig = (
  <Router onUpdate={() => window.scrollTo(0, 0)} history={browserHistory}>
    <Route path="/" component={App}>
        <Route path="button" component={Button}/>
        <Route path="dropdown" component={Dropdown}/>
        <Route path="menuItms" component={MenuItems}/>
        <Route path="modals" component={Modals}/>
    </Route>

  </Router>
);

export default RouteConfig;
